import { ApiCall } from "tsrpc";
import { ReqRegRoom, ResRegRoom } from "../../../tsrpc/shared/protocols/hall/PtlRegRoom";
import { ShareConfig } from "../../../module/config/ShareConfig";
import { CommonFactory } from "../../../module/common/CommonFactory";
import { hs } from "../../../HallServiceEntra";

export default async function (call: ApiCall<ReqRegRoom, ResRegRoom>) {
    // TODO
    if (call.req.port.length == 0) {
        call.error("房间服务器的端口号无效", {code:"ROOM_SERVICE_PORT_INVAILD"});
        return;
    }

    hs.joinRoomService(call);
    
}